package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;
import java.util.Map;

public interface RoleService {

    public PageResult findPage(QueryPageBean pageBean);

    public Role findById(Integer id);

    public List<Role> findAll();

    public void addRole(Role role, Integer[] menuIds, Integer[] permissionIds);

    public void edit(Role role, Integer[] menuIds, Integer[] permissionIds);

    public Map<String, Integer[]> findMenuIdsAndPermissionIdsByRoleId(Integer roleId);

    public void deleteById(Integer roleId);
}
